package com.zxy.ziems.server.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zxy.btp.mybatis.mapper.BtpBaseMapper;
import com.zxy.ziems.server.domain.User;
import com.zxy.ziems.server.dto.UserQueryDto;
import com.zxy.ziems.server.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper extends BtpBaseMapper<User> {
    Page<UserVo> selectUserList(@Param("page") Page<UserVo> page, @Param("userQueryDto") UserQueryDto userQueryDto);

    /**
     * 根据用户id查询用户信息
     * @param userId
     * @return
     */
    UserVo selectUserVoBy(@Param("userId") String userId);

}
